package com.ynny.demo02;
import java.util.Scanner;

public class StudentTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Student student = new Student();

        System.out.println("请输入你的语文成绩");
        double scoreCh = scanner.nextDouble();
        student.setScoreCh(scoreCh);
        System.out.println("请输入你的数学成绩");
        double scoreMth = scanner.nextInt();
        student.setScoreMath(scoreMth);
        System.out.println("请输入你的英语成绩");
        double scoreEn = scanner.nextDouble();
        student.setScoreEn(scoreEn);

        System.out.println("您的平均成绩是：" + student.aver());
        System.out.println("您的最低分是：" + student.min());
    }
}
